gtk4.git
12 years agoiconview: Respect the fixed item width when adjusting the wrap width
Carlos Garcia Campos [Sun, 30 Sep 2012 11:09:53 +0000 (13:09 +0200)]
iconview: Respect the fixed item width when adjusting the wrap width

Restore the code the way it was in GTK2.

https://bugzilla.gnome.org/show_bug.cgi?id=680953

12 years agogtk/gtkwindow.c: Fix build on non-X11
Chun-wei Fan [Mon, 26 Aug 2013 04:12:57 +0000 (12:12 +0800)]
gtk/gtkwindow.c: Fix build on non-X11

There were some code added to this file that is meant for the X11 backend,
but they are being unconditionally built.  Add build-time checks for the
X11 backend for these to fix the build on non-X11 platforms.

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 26 Aug 2013 08:52:11 +0000 (10:52 +0200)]
Updated Norwegian bokmål translation

12 years agoUpdated Irish translation
Seán de Búrca [Mon, 26 Aug 2013 06:20:59 +0000 (00:20 -0600)]
Updated Irish translation

12 years agoUpdated Brazilian Portuguese translation for Gtk+-Properties
Rafael Ferreira [Mon, 26 Aug 2013 05:54:14 +0000 (02:54 -0300)]
Updated Brazilian Portuguese translation for Gtk+-Properties

12 years agoUpdated Brazilian Portuguese translation for Gtk+-UI
Rafael Ferreira [Mon, 26 Aug 2013 05:53:51 +0000 (02:53 -0300)]
Updated Brazilian Portuguese translation for Gtk+-UI

12 years agogdk/win32/gdkdevice-virtual.c: Various fixes
Chun-wei Fan [Wed, 14 Aug 2013 10:46:15 +0000 (18:46 +0800)]
gdk/win32/gdkdevice-virtual.c: Various fixes

...for the gdk_cursor_new_from_surface work (commit b2113b73) where the
types of some parameters were changed, and also to silence a critical
GDK_IS_DEVICE when a menu item is selected (courtesy of LE GARREC Vincent
from bug 696756).

https://bugzilla.gnome.org/show_bug.cgi?id=705980

12 years agoGDK/GTK on Windows: Fix build
Chun-wei Fan [Wed, 21 Aug 2013 13:54:09 +0000 (21:54 +0800)]
GDK/GTK on Windows: Fix build

Due to the work on gdk_cursor_new_from_surface (commit b2113b73),
get_cursor_for_pixbuf() in GdkDisplayClass was converted to
get_cursor_for_surface(), which means the GDK Win32 backend needs to be
updated for the code to build and run on Windows, plus some function
prototypes and declarations/calls need to be updated as well.

https://bugzilla.gnome.org/show_bug.cgi?id=705980

12 years agoPunjabi Translation updated by Aman
A S Alam [Sun, 25 Aug 2013 23:50:15 +0000 (18:50 -0500)]
Punjabi Translation updated by Aman

12 years agoPunjabi Translation updated by Aman
A S Alam [Sun, 25 Aug 2013 23:50:09 +0000 (18:50 -0500)]
Punjabi Translation updated by Aman

12 years agoUpdated Czech translation
Marek Černocký [Sun, 25 Aug 2013 19:54:40 +0000 (21:54 +0200)]
Updated Czech translation

12 years agoTajik translation updated
Victor Ibragimov [Sun, 25 Aug 2013 16:57:36 +0000 (21:57 +0500)]
Tajik translation updated

12 years agowayland: Set type for GtkSelectionData for incoming contents
Kristian Høgsberg [Sat, 24 Aug 2013 06:13:01 +0000 (23:13 -0700)]
wayland: Set type for GtkSelectionData for incoming contents

This is set from the incoming property type under X11.  Under Wayland
it will always be what we requested, so we can just set it to the target.

12 years agowayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD
Kristian Høgsberg [Sat, 24 Aug 2013 06:10:22 +0000 (23:10 -0700)]
wayland: Only set wayland selection for GDK_SELECTION_CLIPBOARD

Wayland only has one selection, which corresponds to GDK_SELECTION_CLIPBOARD.

12 years agowayland: Compare serial numbers correctly to avoid overflow problems
Kristian Høgsberg [Sat, 24 Aug 2013 06:08:13 +0000 (23:08 -0700)]
wayland: Compare serial numbers correctly to avoid overflow problems

We have to look at the difference between two numbers, which will always
be well-defined and give the right result, even in case of integer overflow.

12 years agowayland: Use current serial when setting selection, not _wl_time_now()
Kristian Høgsberg [Sat, 24 Aug 2013 06:05:33 +0000 (23:05 -0700)]
wayland: Use current serial when setting selection, not _wl_time_now()

The wl_data_device.set_selection request expects a serial number.

12 years agowayland: wl_data_device.enter provides a serial number, not a timestamp
Kristian Høgsberg [Sat, 24 Aug 2013 06:04:43 +0000 (23:04 -0700)]
wayland: wl_data_device.enter provides a serial number, not a timestamp

12 years agoAdd workspace handling to the window menu
Matthias Clasen [Sat, 24 Aug 2013 04:52:31 +0000 (00:52 -0400)]
Add workspace handling to the window menu

The reimplements the current mutter window menu for
workspace changes.

https://bugzilla.gnome.org/show_bug.cgi?id=706323

12 years agox11: Add EWMH workspace handling api
Matthias Clasen [Sat, 24 Aug 2013 04:51:01 +0000 (00:51 -0400)]
x11: Add EWMH workspace handling api

Add a few functions that give access to the EWMH workspace
properties.

12 years agoAdd an 'Always on Top' item to the csd window menu
Matthias Clasen [Sat, 24 Aug 2013 02:46:04 +0000 (22:46 -0400)]
Add an 'Always on Top' item to the csd window menu

We want to make the csd window menu as similar as possible to the
mutter window menu.

https://bugzilla.gnome.org/show_bug.cgi?id=706323

12 years agowindow: add a style class when we automatically create the titlebar
Cosimo Cecchi [Thu, 22 Aug 2013 15:16:05 +0000 (16:16 +0100)]
window: add a style class when we automatically create the titlebar

To distinguish it from custom titlebars added from applications.

https://bugzilla.gnome.org/show_bug.cgi?id=706592

12 years agowindow: don't change bottom margin for automatic CSD
Cosimo Cecchi [Thu, 22 Aug 2013 15:11:23 +0000 (16:11 +0100)]
window: don't change bottom margin for automatic CSD

We'll use a style class to be able to give this a different appearance,
but for the time being we don't really need to give this such different
margin.

https://bugzilla.gnome.org/show_bug.cgi?id=706592

12 years agolabel: Initialize lines value to -1
Benjamin Otte [Fri, 23 Aug 2013 16:26:59 +0000 (18:26 +0200)]
label: Initialize lines value to -1

Fixes defaultvalue test.

12 years agolabel: Fix gcc warning
Benjamin Otte [Fri, 23 Aug 2013 16:24:20 +0000 (18:24 +0200)]
label: Fix gcc warning

12 years agotestsuite: Add a clipboard test
Benjamin Otte [Fri, 23 Aug 2013 11:00:37 +0000 (13:00 +0200)]
testsuite: Add a clipboard test

I'm not sure I like it yet because it deadlocked once and I haven't
figured out why that is.

12 years agoAdd api to ellipsize labels to multiple lines
Matthias Clasen [Fri, 23 Aug 2013 00:29:22 +0000 (20:29 -0400)]
Add api to ellipsize labels to multiple lines

When setting the lines property, the label will be ellipsized
to that many lines, with the ellipsis only appearing in the
last line. This is different from how ellipsization of multi-line
labels normally works in GTK+.

12 years agocombobox: Add missing Since tags for entry constructors
David King [Thu, 22 Aug 2013 19:36:17 +0000 (20:36 +0100)]
combobox: Add missing Since tags for entry constructors

12 years agogtkwindow: Enable CSD when windows set a titlebar
Jasper St. Pierre [Wed, 21 Aug 2013 17:54:16 +0000 (13:54 -0400)]
gtkwindow: Enable CSD when windows set a titlebar

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Disable CSD if we aren't running under a supported WM
Jasper St. Pierre [Wed, 21 Aug 2013 19:08:08 +0000 (15:08 -0400)]
gtkwindow: Disable CSD if we aren't running under a supported WM

Also, split the checks for CSD out into a separate function.

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Split code that detects if we want CSD out
Jasper St. Pierre [Wed, 21 Aug 2013 19:05:44 +0000 (15:05 -0400)]
gtkwindow: Split code that detects if we want CSD out

This will get a bit more complex when we enable CSD for custom headerbars

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Have a separate "titlebar" pointer for decorations we create ourselves
Jasper St. Pierre [Wed, 21 Aug 2013 18:59:44 +0000 (14:59 -0400)]
gtkwindow: Have a separate "titlebar" pointer for decorations we create ourselves

This cleans up the code a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agogtkwindow: Rename title_icon, etc. to titlebar_icon
Jasper St. Pierre [Wed, 21 Aug 2013 18:55:22 +0000 (14:55 -0400)]
gtkwindow: Rename title_icon, etc. to titlebar_icon

"title_box" is used for both a custom header bar and for a titlebar.
Since we want to help differentiate these cases in the code, rename
everything titlebar-internal to use "titlebar_".

https://bugzilla.gnome.org/show_bug.cgi?id=706529

12 years agoUpdate Tajik translations
Victor Ibragimov [Wed, 21 Aug 2013 23:28:17 +0000 (01:28 +0200)]
Update Tajik translations

12 years agofilechooser: Don't use an underline mnemonic in the 'Save in folder' label
Federico Mena Quintero [Wed, 21 Aug 2013 14:50:42 +0000 (09:50 -0500)]
filechooser: Don't use an underline mnemonic in the 'Save in folder' label

This used to point to the GtkPathBar, which doesn't accept mnemonic activation, anyway.
This whole thing was a leftover from when we had a combo box to select a folder, but
this is no longer the case.

https://bugzilla.gnome.org/show_bug.cgi?id=706448

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoclipboard: fix build without wayland
Saleem Abdulrasool [Wed, 21 Aug 2013 02:30:05 +0000 (19:30 -0700)]
clipboard: fix build without wayland

Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
12 years agoUpdated Polish translation
Piotr Drąg [Wed, 21 Aug 2013 02:27:19 +0000 (04:27 +0200)]
Updated Polish translation

12 years agoUpdated Polish translation
Piotr Drąg [Wed, 21 Aug 2013 02:16:52 +0000 (04:16 +0200)]
Updated Polish translation

12 years agoFix minor typos
Piotr Drąg [Wed, 21 Aug 2013 02:15:52 +0000 (04:15 +0200)]
Fix minor typos

12 years agoPost release version bump
Matthias Clasen [Tue, 20 Aug 2013 22:54:41 +0000 (18:54 -0400)]
Post release version bump

12 years ago3.9.12
Matthias Clasen [Tue, 20 Aug 2013 02:04:48 +0000 (22:04 -0400)]
3.9.12

12 years agoFix distcheck
Matthias Clasen [Tue, 20 Aug 2013 22:53:07 +0000 (18:53 -0400)]
Fix distcheck

We need to clean up the ui.h files somewhere if they are generated
during the build from tarball. Reuse the existing distclean-local
hack for it.

12 years agoAdd new api to the docs
Matthias Clasen [Tue, 20 Aug 2013 20:19:52 +0000 (16:19 -0400)]
Add new api to the docs

12 years agoGtkHeaderBar: Add the titlebutton style to the close button
Matthias Clasen [Tue, 20 Aug 2013 15:33:07 +0000 (11:33 -0400)]
GtkHeaderBar: Add the titlebutton style to the close button

This will let the theme unify the appearance of this button with
the window buttons in 'traditional' title bars.

12 years agodoc: Fix typos
Volker Sobek [Mon, 19 Aug 2013 17:50:43 +0000 (19:50 +0200)]
doc: Fix typos

Fix two typos in gtk/gtktexttag.c.

https://bugzilla.gnome.org/show_bug.cgi?id=706335

12 years agoclipboard: Reimplement Wayland clipboard using vfuncs
Benjamin Otte [Tue, 20 Aug 2013 13:35:58 +0000 (15:35 +0200)]
clipboard: Reimplement Wayland clipboard using vfuncs

This way, the Wayland and the regular clipboard implementation can both
be compiled in and selected based on the display in use.

One thing potentially broken now is text mime type handling as Wayland
seemed to use different mime types in some places.

12 years agoclipboard: Make a bunch of functions vfuncs
Benjamin Otte [Tue, 20 Aug 2013 12:44:14 +0000 (14:44 +0200)]
clipboard: Make a bunch of functions vfuncs

12 years agoclipboard: Split struct definitions into private header
Benjamin Otte [Mon, 19 Aug 2013 13:28:47 +0000 (15:28 +0200)]
clipboard: Split struct definitions into private header

12 years agoUpdate README.in
Alexander Larsson [Tue, 20 Aug 2013 13:37:13 +0000 (15:37 +0200)]
Update README.in

12 years agox11: Add gdk_x11_display_set_window_scale
Alexander Larsson [Tue, 20 Aug 2013 09:15:08 +0000 (11:15 +0200)]
x11: Add gdk_x11_display_set_window_scale

This lets you force a specific window scale, this is needed
for mutter to be able to disable the scaling as it needs access
to unmangled X window/screen sizes. It can also be useful to
force a specific scale in e.g. tests.

12 years agoEnforce a fixed scale of 1 if no cairo scale support
Alexander Larsson [Tue, 20 Aug 2013 08:29:45 +0000 (10:29 +0200)]
Enforce a fixed scale of 1 if no cairo scale support

We used to just follow the default, which would pick up scale
changes from xsettings, but that is not right if we can't
actually support scales.

12 years agoAvoid deprecation warnings
Matthias Clasen [Tue, 20 Aug 2013 04:14:00 +0000 (00:14 -0400)]
Avoid deprecation warnings

12 years agoiconhelper: refactor some code into a single function
Cosimo Cecchi [Sun, 4 Aug 2013 14:56:37 +0000 (16:56 +0200)]
iconhelper: refactor some code into a single function

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agoiconfactory: cache/invalidate pixbufs according to the effect
Cosimo Cecchi [Sun, 4 Aug 2013 09:40:43 +0000 (11:40 +0200)]
iconfactory: cache/invalidate pixbufs according to the effect

The state of the widget is not enough now to cache the pixbuf - we also
have to take into consideration the image effect itself, since the state
on the actual GtkStyleContext we use might not change, e.g. because the
change was on a parent context.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agothemingengine: apply image effects according to GtkCssImageEffect value
Cosimo Cecchi [Sun, 4 Aug 2013 09:39:49 +0000 (11:39 +0200)]
themingengine: apply image effects according to GtkCssImageEffect value

Instead of only looking at the state flags.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agocss: Add a GtkCssValue for GtkCssImageEffect
Cosimo Cecchi [Sun, 4 Aug 2013 09:38:56 +0000 (11:38 +0200)]
css: Add a GtkCssValue for GtkCssImageEffect

This will allow us to use the CSS machinery to apply a highlight or dim
effect when images are prelit or insensitive.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agothemingengine: refactor a conditional branch
Cosimo Cecchi [Sun, 4 Aug 2013 07:32:14 +0000 (09:32 +0200)]
themingengine: refactor a conditional branch

Return early when the state is not wildcarded - makes the code more
readable.

https://bugzilla.gnome.org/show_bug.cgi?id=705443

12 years agopathbar: add back GTK_STYLE_CLASS_LINKED
Cosimo Cecchi [Fri, 16 Aug 2013 16:53:39 +0000 (18:53 +0200)]
pathbar: add back GTK_STYLE_CLASS_LINKED

This was accidentally removed in commit
42f53ab58e3f905b242029c2ea446d79d2113725

https://bugzilla.gnome.org/show_bug.cgi?id=706028

12 years agoRedo style class handling
Matthias Clasen [Mon, 19 Aug 2013 18:40:22 +0000 (14:40 -0400)]
Redo style class handling

We should set the appropriate style classes when we have
constructed the content and know if it is a label, an image,
or both. Doing this in the convenience constructors is
problematic for language bindings, and misses out when the
content is changed after construction.

12 years agoRevert "Add the "text-button" style to button created with gtk_button_new_with_{label...
Matthias Clasen [Mon, 19 Aug 2013 18:00:37 +0000 (14:00 -0400)]
Revert "Add the "text-button" style to button created with gtk_button_new_with_{label,mnemonic}"

This reverts commit 8d7bab7d7b902e54f27d7dbe26bca9e21eb45787.

12 years agoFix a typo
Yosef Or Boczko [Mon, 19 Aug 2013 17:59:50 +0000 (20:59 +0300)]
Fix a typo

12 years agoGtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.
Andrew Walton [Thu, 15 Aug 2013 18:34:31 +0000 (11:34 -0700)]
GtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.

I'm currently working on porting view::FieldEntry (from libview) to C for use in
upstream GTK+. FieldEntry is a widget which allows users to enter structured
text such as IPv4 addresses or serial numbers. The way that FieldEntry
delineates the fields within the entry is with tabstops, using PangoTabArray
entries to precisely position the fields and delimiters. Because GtkEntry
rebuilds its internal PangoLayout fairly frequently, this requires a property in
the entry that will set the tabs on the layout whenever that happens. This API
looks very similar to one in GtkTextView.

Patch by David Trowbridge <trowbrds@gmail.com>. Updated for Gtk+ 3.10.

https://bugzilla.gnome.org/show_bug.cgi?id=697399

12 years agoFix GtkEntry drawing to provide visual feedback when editable=FALSE.
David Trowbridge [Mon, 19 Aug 2013 17:41:39 +0000 (13:41 -0400)]
Fix GtkEntry drawing to provide visual feedback when editable=FALSE.

GtkEntry currently draws exactly the same no matter what the state of the
'editable' property. This is pretty confusing for users because there's
no visual feedback at all, it just seems like their keyboard is broken.

This change adds a "read-only" class to the StyleContext, which will
continue to allow the user to select/copy the text, but will draw the
entry as if it were insensitive, providing some indication that the
contents can't be changed.

Signed-off-by: David Trowbridge <trowbrds@gmail.com>
http://bugzilla.gnome.org/show_bug.cgi?id=694831

12 years agoicon-theme: Add ScaledDirectories support
Alexander Larsson [Mon, 19 Aug 2013 13:42:30 +0000 (15:42 +0200)]
icon-theme: Add ScaledDirectories support

For backwards compat support we don't want old implementations not
supporting scaling to see the new scaled directories, so move these
to a separate list.

12 years agoicon-theme: Use "Scale" for key as per the spec
Alexander Larsson [Mon, 19 Aug 2013 13:41:49 +0000 (15:41 +0200)]
icon-theme: Use "Scale" for key as per the spec

The latest spec proposal uses "Scale", not "OutputScale", so use this.

12 years agogdk_window_raise (): Do not invalidate toplevel windows.
Juan Pablo Ugarte [Wed, 17 Jul 2013 19:23:15 +0000 (16:23 -0300)]
gdk_window_raise (): Do not invalidate toplevel windows.

12 years agoFix keyboard activation of menu buttons
Matthias Clasen [Mon, 19 Aug 2013 02:22:22 +0000 (22:22 -0400)]
Fix keyboard activation of menu buttons

Keyboard activation relies on the menu not being visible,
so ensure that it isn't when the menu is attached.

Problem tracked down by Vincent Le Garrec,
https://bugzilla.gnome.org/show_bug.cgi?id=688738

12 years agoAdd a style class for context menus
Matthias Clasen [Sun, 18 Aug 2013 14:45:24 +0000 (10:45 -0400)]
Add a style class for context menus

Attached widgets inherit from the style of the widget they are
attached to. This can sometimes have unintended consequences,
like a context menu in the main view of gedit inheriting the font
that is configured for documents, or the context menu of the preview
in the font chooser coming up with humongous font size.

To fix this problem, we introduce a context menu style class
and use it for all menus that are used like that. The theme
can then set a font for this style class.

https://bugzilla.gnome.org/show_bug.cgi?id=697127

12 years agoAdd the "text-button" style to button created with gtk_button_new_with_{label,mnemonic}
Yosef Or Boczko [Sat, 17 Aug 2013 22:14:44 +0000 (01:14 +0300)]
Add the "text-button" style to button created with gtk_button_new_with_{label,mnemonic}

https://bugzilla.gnome.org/show_bug.cgi?id=706220

12 years agoUpdate Chinese simplified translatin for properties
keyring [Sun, 18 Aug 2013 02:39:12 +0000 (10:39 +0800)]
Update Chinese simplified translatin for properties

12 years agowindow: Some protection against nested set_focus() calls
Stef Walter [Fri, 16 Aug 2013 19:19:15 +0000 (21:19 +0200)]
window: Some protection against nested set_focus() calls

Since set_focus() can triger events, have a check to make
sure state is still valid before firing is-focus signal.

https://bugzilla.gnome.org/show_bug.cgi?id=706152

12 years agowindow: set GTK_STYLE_CLASS_TITLEBAR to custom titles
Cosimo Cecchi [Fri, 16 Aug 2013 17:26:12 +0000 (19:26 +0200)]
window: set GTK_STYLE_CLASS_TITLEBAR to custom titles

When a custom title is added to a GtkWindow, add the
GTK_STYLE_CLASS_TITLEBAR to it, so the theme can apply the default rules
for its style.

https://bugzilla.gnome.org/show_bug.cgi?id=706045

12 years agostylecontext: add GTK_STYLE_CLASS_TITLEBAR define
Cosimo Cecchi [Fri, 16 Aug 2013 17:25:32 +0000 (19:25 +0200)]
stylecontext: add GTK_STYLE_CLASS_TITLEBAR define

For consistency with the other stock style classes.

https://bugzilla.gnome.org/show_bug.cgi?id=706045

12 years agoRevert "Deprecate and ignore the cursor blink settings"
Matthias Clasen [Sat, 17 Aug 2013 02:45:13 +0000 (22:45 -0400)]
Revert "Deprecate and ignore the cursor blink settings"

This reverts commit b2e666bf8f297eb998331fa8ce0062ce7a5198fa.

We need to keep cursor blinking configurable for accessibility
reasons.

https://bugzilla.gnome.org/show_bug.cgi?id=704134

Conflicts:
gdk/win32/gdkproperty-win32.c
gdk/x11/gdksettings.c
gtk/gtksettings.c
gtk/gtktextview.c

12 years agoMake symbolic icons work with the current rsvg
Matthias Clasen [Fri, 16 Aug 2013 22:57:21 +0000 (18:57 -0400)]
Make symbolic icons work with the current rsvg

The rsvg loader now restricts what external files it will
allow to load from an svg. Thus our xinclude trick doesn't work
anymore. To work around that, embed the payload in a  data: uri.
This is somewhat ugly, but the best we could come up with.

12 years agoBug 705750 Quartz input method doesn't work correctly for Chinese characters
Ek Kato [Fri, 16 Aug 2013 16:54:34 +0000 (09:54 -0700)]
Bug 705750 Quartz input method doesn't work correctly for Chinese characters

Modified from original for Gtk3.

12 years agoAdd style classes to headerbar titles
Matthias Clasen [Fri, 16 Aug 2013 17:35:28 +0000 (13:35 -0400)]
Add style classes to headerbar titles

The current theme just makes all text bold that appears anywhere
in a headerbar, which is not great. We add 'title' and 'subtitle'
style classes to allow more targeted overriding of the font.

12 years agoUpdate config.h.win32.in
Chun-wei Fan [Fri, 16 Aug 2013 06:39:08 +0000 (14:39 +0800)]
Update config.h.win32.in

Make its entries match those that are checked by autotools in config.h.in

12 years agoFix a crasher that was introduced by 9ca802161ec6387419d160f21fe477008a567477
Cody Russell [Thu, 15 Aug 2013 20:08:34 +0000 (15:08 -0500)]
Fix a crasher that was introduced by 9ca802161ec6387419d160f21fe477008a567477
due to preedit_str being initialized as an empty string rather than NULL.

12 years agoBug 705182 Reset Cocoa IME state when immodule is reset
Michael Hutchison [Thu, 15 Aug 2013 16:44:02 +0000 (09:44 -0700)]
Bug 705182 Reset Cocoa IME state when immodule is reset

Commits the pre-edit string on receipt of focus_out and reset
commands.
Patch refinements by Cody Russell <bratsche@gnome.org> and
Ek Kato <ek.kato@gmail.com>

12 years agogtksearchentry: Provide an accessible name
Joanmarie Diggs [Thu, 15 Aug 2013 13:20:19 +0000 (15:20 +0200)]
gtksearchentry: Provide an accessible name

https://bugzilla.gnome.org/show_bug.cgi?id=706014

12 years agoClean up Property Sheets a bit
Chun-wei Fan [Thu, 15 Aug 2013 13:48:22 +0000 (21:48 +0800)]
Clean up Property Sheets a bit

...from the last commit, as some unecessary stuff was left over in the
Visual Studio 2010 property sheets.

12 years agoUpdate Visual Studio Property Sheets
Chun-wei Fan [Thu, 15 Aug 2013 13:45:27 +0000 (21:45 +0800)]
Update Visual Studio Property Sheets

-For the binary "installation", look for the DLL files with their file
 names consistent with the ones that are generated with the respective
 Visual Studio projects.
-Remove any stray GDK DLLs that were left over from a Broadway-enabled
 GDK when building a non-Broadway-enabled GTK+ binary set.

12 years agogtkdnd: Introduce a new API for more accurate drag origin data
Jasper St. Pierre [Wed, 7 Aug 2013 09:10:42 +0000 (05:10 -0400)]
gtkdnd: Introduce a new API for more accurate drag origin data

When trying to drag, we currently the position of the first motion
event to determine where the drag came from. This might be alright
in the case of the old animation, but the data will be inaccurate
if the user has moved the pointer quite a bit since pressing the
cursor to start dragging. While we could monkey patch the GdkEvent
at the widget layer, this is unintuitive and strange.

Add a new API that takes a set of pointer coordinates describing
the origin of the drag. Additionally, adapt most widgets to use
it and use it with correct coordinates.

https://bugzilla.gnome.org/show_bug.cgi?id=705605

12 years agogtkdnd: Use a more modern spring back animation for cancelled drags
Jasper St. Pierre [Wed, 7 Aug 2013 07:24:01 +0000 (03:24 -0400)]
gtkdnd: Use a more modern spring back animation for cancelled drags

https://bugzilla.gnome.org/show_bug.cgi?id=705605

12 years agogtktextutil: Remove the border and background from drag icons
Jasper St. Pierre [Wed, 7 Aug 2013 14:21:21 +0000 (10:21 -0400)]
gtktextutil: Remove the border and background from drag icons

https://bugzilla.gnome.org/show_bug.cgi?id=705605

12 years agodoap: doap files are required to have a lowercase <name>
Alberto Ruiz [Wed, 14 Aug 2013 10:05:15 +0000 (12:05 +0200)]
doap: doap files are required to have a lowercase <name>

12 years agodocs: Convert GtkMenuShell comment to documentation
David King [Thu, 15 Nov 2012 19:49:50 +0000 (19:49 +0000)]
docs: Convert GtkMenuShell comment to documentation

https://bugzilla.gnome.org/show_bug.cgi?id=448637

12 years agooopx - fix typo
Yosef Or Boczko [Wed, 14 Aug 2013 07:45:35 +0000 (10:45 +0300)]
oopx - fix typo

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
12 years agoAdd gtk_button_new_from_icon_name
Yosef Or Boczko [Wed, 14 Aug 2013 07:41:42 +0000 (10:41 +0300)]
Add gtk_button_new_from_icon_name

This function is a convenience wrapper around
gtk_button_new() and gtk_button_set_image().

https://bugzilla.gnome.org/show_bug.cgi?id=705918

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
12 years agopaned: minus the size by the handle for the for_child1 computation.
Alban Browaeys [Wed, 7 Aug 2013 16:46:07 +0000 (18:46 +0200)]
paned: minus the size by the handle for the for_child1 computation.

Fixes:
(rhythmbox:22802): Gtk-CRITICAL **:
_gtk_widget_get_preferred_size_for_size: assertion 'size >= -1' failed

that is gtk_paned_get_preferred_size_for_opposite_orientation calls
_gtk_widget_get_preferred_size_for_size on child2 with a negative
size.

As gtkpaned size was (32), child1 minimum size was (55) then
for_child1 became (32) for an handle_size of (5). Thus for_child2
ended up as (-5).

https://bugzilla.gnome.org/show_bug.cgi?id=705624

12 years agoGtkSpinButton: disconnect signals in the accessible
Matthias Clasen [Wed, 14 Aug 2013 04:04:46 +0000 (00:04 -0400)]
GtkSpinButton: disconnect signals in the accessible

Just as for GtkRangeAccessible, we were not even trying to disconnect
the signal handler from the adjustment. The same fix works here:
override the widget_set and widget_unset vfuncs.

https://bugzilla.gnome.org/show_bug.cgi?id=705692

12 years agoGtkRange: disconnect signals in the accessible
Matthias Clasen [Wed, 14 Aug 2013 03:54:53 +0000 (23:54 -0400)]
GtkRange: disconnect signals in the accessible

We were only disconnecting the signal in finalize, when
the widget was already unset. Instead, override the widget_set
and widget_unset vfuncs of GtkAccessible, and keep a reference
to the adjustment.

https://bugzilla.gnome.org/show_bug.cgi?id=705692

12 years agoTrivial typo fix
Matthias Clasen [Wed, 14 Aug 2013 02:25:16 +0000 (22:25 -0400)]
Trivial typo fix

12 years agoImprove a deprecation hint
Matthias Clasen [Wed, 14 Aug 2013 00:41:59 +0000 (20:41 -0400)]
Improve a deprecation hint

Don't point to a replacement that is itself deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=705372

12 years agosearchbar: ignore GDK_KEY_Menu in handle_event()
Stefano Facchini [Mon, 5 Aug 2013 16:22:20 +0000 (18:22 +0200)]
searchbar: ignore GDK_KEY_Menu in handle_event()

https://bugzilla.gnome.org/show_bug.cgi?id=705524

12 years agoMSVC Builds: Update "installation" of headers
Chun-wei Fan [Wed, 14 Aug 2013 00:17:18 +0000 (08:17 +0800)]
MSVC Builds: Update "installation" of headers

"Install" the newly-introduced public header gdkwin32misc.h.

12 years agoBug 702144: Make gdkwin32.h a pure include-only header
Chun-wei Fan [Thu, 13 Jun 2013 04:16:16 +0000 (12:16 +0800)]
Bug 702144: Make gdkwin32.h a pure include-only header

Move all the system includes, defines and function prototypes into a
separate header gdkwin32misc.h, so that we could keep gdkwin32.h as simple
as possible.

12 years agoGTK-Win32: Avoid Using Deprecated API
Chun-wei Fan [Wed, 31 Jul 2013 03:42:36 +0000 (11:42 +0800)]
GTK-Win32: Avoid Using Deprecated API

Replace the deprecated API calls with the updated APIs, and fix the build
of modules/input/gtkimcontextime.c, as we really needed
gdk/gdkkeysyms-compat.h (gdk/gdkkeysyms.h was already included)

https://bugzilla.gnome.org/show_bug.cgi?id=705068

12 years agogdk/win32/gdkdevice-virtual.c: Don't Use Deprecated APIs
Chun-wei Fan [Tue, 30 Jul 2013 03:11:16 +0000 (11:11 +0800)]
gdk/win32/gdkdevice-virtual.c: Don't Use Deprecated APIs

...this was split into two commits as this source file has different
line endings (for some reason) from the other GDK-Win32 source files that
were updated in the quest to refrain from using deprecated APIs

12 years agoGdkWin32: Avoid Using Deprecated API
Chun-wei Fan [Tue, 30 Jul 2013 03:06:57 +0000 (11:06 +0800)]
GdkWin32: Avoid Using Deprecated API

Update the Win32 GDK backend to not use the deprecated GDK APIs.

https://bugzilla.gnome.org/show_bug.cgi?id=705068